package com.provider.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.provider.dao.TProductDao;
import com.provider.entity.TProduct;
import com.provider.entity.TProject;
import com.provider.service.TProductService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 产品表(TProduct)表服务实现类
 *
 * @author makejava
 * @since 2024-04-30 06:12:16
 */
@Service("tProductService")
public class TProductServiceImpl extends ServiceImpl<TProductDao, TProduct> implements TProductService {

    @Override
    public List<TProduct> queryAllProduct() {
        LambdaQueryWrapper<TProduct> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(TProduct::getIsValid, "Y");
        return this.list(lambdaQueryWrapper);
    }
}

